import { Data, http } from '@idmy/core'

export function createOrUpdate(model: Data) {
  if (model.id) {
    return http.post('/api/sys/Cfg/update', model, { appKey: 'sys' })
  } else {
    return http.post('/api/sys/Cfg/create', model, { appKey: 'sys' })
  }
}
